

let logLevel = 3;
function error(...args) {
 
        console.error(...args);
    
}

function warn(...args) {
    if (logLevel < 1) return;

        console.warn(...args);
    
}
function debug(...args) {
    if (logLevel < 2) return;

        console.debug(...args);
    
}
function info(...args) {
    if (logLevel < 3) return;
        console.info(...args);
    
}
function log(...args) {
    debug(...args);
}
function setLogLevel(level) {
    logLevel = level;
}


export default {
    error,
    warn,
    info,
    debug,
    setLogLevel,
    log
};